[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 tanh()                  Calculate Hyperbolic Tangent

 #include   <math.h>

 double     tanh(x);
 double     x;                           Radians

    tanh() returns the hyperbolic tangent of 'x'.

       Returns:     The hyperbolic tangent of 'x'.  There is no error
                    return.

   -------------------------------- Example ---------------------------------

    The following statements print the hyperbolic tangent of -3.1416.

           #include <math.h>
           #include <stdio.h>       /* for printf() */

           main()
           {
               double htangent;

               htangent = tanh(-3.1416);  /* htangent = -0.9962721 */
               printf("hyperbolic tangent of -3.1416 radians = %e\n",
                       htangent);
           }


See Also: tan() atan() sin() sinh()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson